package guiLayer;

import java.awt.Font;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.UIManager;

import net.miginfocom.swing.MigLayout;

public class ItemCardProductCreation extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Create the panel.
	 */
	public ItemCardProductCreation() {
		setLayout(new MigLayout("", "[120px][grow][30px]", "[30px][30px][70px,grow][30px][30px][30px][30px][30px]"));

		// Item ID
		JLabel lblItemID = new JLabel("Vare nr.:");
		add(lblItemID, "cell 0 0");

		JTextField txtItemID = new JTextField();
		txtItemID.setEditable(false);
		add(txtItemID, "cell 1 0,grow");
		txtItemID.setColumns(10);

		// Item name
		JLabel lblName = new JLabel("Vare navn:");
		add(lblName, "cell 0 1");

		JTextField txtName = new JTextField();
		add(txtName, "cell 1 1,grow");
		txtName.setColumns(10);

		// Description
		JLabel lblDescription = new JLabel("Beskrivelse:");
		add(lblDescription, "cell 0 2");

		JTextArea txtDescription = new JTextArea();
		txtDescription.setBorder(UIManager.getBorder("TextField.border"));
		txtDescription.setFont(new Font("Tahoma", Font.PLAIN, 13));
		txtDescription.setLineWrap(true);
		add(txtDescription, "cell 1 2,grow");
		txtDescription.setColumns(10);

		// Supplier
		JLabel lblSupplier = new JLabel("Leverand\u00F8r:");
		add(lblSupplier, "cell 0 3");

		JComboBox<Object> supplierChoice = new JComboBox<Object>();
		supplierChoice.setMaximumRowCount(20);
		supplierChoice.setEditable(true);
		add(supplierChoice, "cell 1 3,grow");

		// Purchase price
		JLabel lblPurchasePrice = new JLabel("Indk\u00F8bspris:");
		add(lblPurchasePrice, "cell 0 4");

		JTextField txtPurchasePrice = new JTextField();
		txtPurchasePrice.setHorizontalAlignment(SwingConstants.TRAILING);
		add(txtPurchasePrice, "cell 1 4,grow");
		txtPurchasePrice.setColumns(10);

		JLabel lblKr = new JLabel("kr.");
		add(lblKr, "cell 2 4");

		// Quantity in bulk
		JLabel lblQuantityInBulk = new JLabel("Antal i pakning:");
		add(lblQuantityInBulk, "cell 0 5");

		JTextField txtTxtquantityinbulk = new JTextField();
		txtTxtquantityinbulk.setHorizontalAlignment(SwingConstants.TRAILING);
		add(txtTxtquantityinbulk, "cell 1 5,grow");
		txtTxtquantityinbulk.setColumns(10);

		JLabel lblStk = new JLabel("stk.");
		add(lblStk, "cell 2 5");

		// Size
		JLabel lblSize = new JLabel("St\u00F8rrelse:");
		add(lblSize, "cell 0 6");

		JTextField txtSize = new JTextField();
		txtSize.setHorizontalAlignment(SwingConstants.TRAILING);
		add(txtSize, "cell 1 6,grow");
		txtSize.setColumns(10);

		JLabel lblCm = new JLabel("cm3");
		add(lblCm, "cell 2 6");

		// Weight
		JLabel lblWeight = new JLabel("V\u00E6gt:");
		add(lblWeight, "cell 0 7");

		JTextField txtWeight = new JTextField();
		txtWeight.setHorizontalAlignment(SwingConstants.TRAILING);
		add(txtWeight, "cell 1 7,grow");
		txtWeight.setColumns(10);

		JLabel lblKg = new JLabel("kg.");
		add(lblKg, "cell 2 7");
	}

}
